import request from '@/utils/request'

// 查询停车卡配置列表
export function listParkingCardSpec(query) {
  return request({
    url: '/parking/parkingCardSpec/list',
    method: 'get',
    params: query
  })
}

// 查询停车卡配置详细
export function getParkingCardSpec(id) {
  return request({
    url: '/parking/parkingCardSpec/' + id,
    method: 'get'
  })
}

// 新增停车卡配置
export function addParkingCardSpec(data) {
  return request({
    url: '/parking/parkingCardSpec',
    method: 'post',
    data: data
  })
}

// 修改停车卡配置
export function updateParkingCardSpec(data) {
  return request({
    url: '/parking/parkingCardSpec',
    method: 'put',
    data: data
  })
}

// 删除停车卡配置
export function delParkingCardSpec(id) {
  return request({
    url: '/parking/parkingCardSpec/' + id,
    method: 'delete'
  })
}
